﻿using UnityEngine;
using System.Collections;

public class Dragonfly : MonoBehaviour {
	
	private static int counter;
	
	
	public static int GetCounter()
	{
		return counter;
	}
	// Use this for initialization
	void Awake()
	{
		counter++;
	}
	
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	public void Kill()
	{
		AudioSource.PlayClipAtPoint(Resources.Load("Sounds/enemyDeath") as AudioClip, transform.position);
		Destroy(gameObject);
	}
}
